#ifndef __PLATFORM_HPP__
#define __PLATFORM_HPP__

#include <SFML/Graphics.hpp>
#include <json/elements.h>
#include <memory>
#include "PhysicObject.hpp"
#include "Entity.hpp"


class Platform : public Entity
{
    public :
    
        Platform();
        Platform(const Platform &p);
        void load(json::Object& o);
       
        virtual void collideWith(Entity& e);
        virtual void collideWith(Ball& b);
        virtual void collideWith(Platform& p);

        virtual void endCollideWith(Entity& e);
        virtual void endCollideWith(Ball& b);
        virtual void endCollideWith(Platform& p);
        
        void draw(sf::RenderTarget &target, sf::RenderStates states) const;
       
    private :
    
        PhysicObject m_obj;
        std::auto_ptr<sf::Shape> m_shape;
};

#endif /* __PLATFORM_HPP__ */

